﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BKH.BLL
{
    class BangCapBUO:IBUO<tbl_Qualification>
    {
        HospitalDBDataContext context = new HospitalDBDataContext();
        public bool Insert(tbl_Qualification obj)
        {
            try
            {
                context.tbl_Qualifications.InsertOnSubmit(obj);
                context.SubmitChanges();
                return true;

            }
            catch (Exception)
            {

                return false ;
            }
        }

        public bool Delete(int id)
        {
            throw new NotImplementedException();
        }

        public bool Delete(tbl_Qualification obj)
        {
            throw new NotImplementedException();
        }

        public List<tbl_Qualification> GetAll()
        {
            throw new NotImplementedException();
        }

        public tbl_Qualification GetSingle(int id)
        {
            throw new NotImplementedException();
        }

        public bool Update(int id, tbl_Qualification obj)
        {
            throw new NotImplementedException();
        }
        public List<tbl_Qualification> GetAllByNV(int nv)
        {
            return context.tbl_Qualifications.Where(n => n.NhanVienID == nv).ToList<tbl_Qualification>();
        }
    }
}
